<script type="text/javascript">
$(document).ready(function() {
	addFieldsToOrder();
	addNewSubjectInOrder();
	disappearingContent10000( ".after-delete-info" );
	showAllCheckAll();
});
</script>
<div id="container">
	<div id="content">

	 	<fieldset class="form">
			<legend>Dodawanie nowego zamówienia na zajęcia</legend>
	
			<form id="zendForm" enctype="application/x-www-form-urlencoded"
				method="post" action="">
				<dl class="zend_form">
					<dt id="yearStudentsid-label">
						<label for="yearStudentsid" class="required">Dla roku:</label>
					</dt>
					<dd id="yearStudentsid-element">
						<select name="yearStudentsid" id="yearStudentsid" class="validate[required]">
							<?php 
								foreach ($this->years as $key => $value) {
							?>
								<option value="<?php echo $key;?>" label="<?php echo $value;?>"><?php echo $value;?></option>
							<?php 
								}
							?>
							</select>
					</dd>
					<dt id="subjectid-label">
						<label for="subjectid" class="required">Przedmiot</label>
					</dt>
					<dd id="subjectid-element">
						<select name="subjectid" id="subjectid" class="validate[required]">
						<?php 
							foreach ($this->subjects as $key => $value) {
						?>
							<option value="<?php echo $key;?>" label="<?php echo $value;?>"><?php echo $value;?></option>
						<?php 
							}
						?>
						</select>
					</dd>	
					<dd id="linkAdd-element">
						<a href="<?php echo $this->url(array('controller'=>'subject','action'=>'add', 'module'=>'technical'));?>" class="addSubjectInOrder">Dodaj nowy</a>
					</dd>
					<dt id="numberHourPerSemester-label">
						<label for="numberHourPerSemester" class="required">Ilość godzin w semestrze</label>
					</dt>
					<dd id="numberHourPerSemester-element">
						<input type="text" name="numberHourPerSemester" id="numberHourPerSemester" value="" size="30"
							class="validate[required,custom[onlyNumberSp]]" />
					</dd>

					<?php 
						foreach ($this->coursesTypes as $key => $value) {
					?>
					
			
						<dt id="coursesTypeid-<?php echo $key;?>-label" >
							<label for="coursesTypeid-<?php echo $key;?>" ><?php echo $value;?></label>
						</dt>
						<dd id="coursesTypeid-<?php echo $key;?>-element">
							<input type="checkbox" name="coursesTypeid-<?php echo $key;?>" id="coursesTypeid-<?php echo $key;?>"
								class="coursesTypeid" />
						</dd>
					
					<?php }?>
					
	

					<dt id="submit-label">&#160;</dt>
					<dd id="submit-element">
						<input type="submit" name="submit" id="submit"
							value="Dodaj nowe zamówienie" class="validate[]" />
					</dd>
				</dl>
			</form>
 
		</fieldset>
 
	</div>

	<!-- content -->
	<div class="clear"></div>
	<!-- #clear -->
</div>
<div  class="form-edit">
<div id="dialog-form" title="Dodawanie nowego przedmiotu">
</div>
</div>